<?php
// +----------------------------------------------------------------------
// | HkCms
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2019 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 广州恒企教育科技有限公司 <admin@hkcms.cn>
// +----------------------------------------------------------------------

namespace app\content\model;

use common\model\Model;

class Message extends Model
{
   public function add_message($data)
   {    

        $data['addtime'] = time();

        $result = $this->insert($data);

        if ($result) {
            return true;
        }

        return false;
   }

}